.PHONY: all
all: calserver calclient

calclient:CalClient.cc
	g++ -o $@ $^ -std=c++11 -ljsoncpp

calserver:CalServer.cc
	g++ -o $@ $^ -std=c++11 -pthread -ljsoncpp

.PHONY: clean
clean:
	rm -f calclient calserver